What does this piece of code in C++ mean? [closed]
Posted
by
user1838418
on Programmers
See other posts from Programmers
or by user1838418
Published on 2012-11-20T16:52:39Z
Indexed on
2012/11/20
17:18 UTC
Read the original article
Hit count: 347
c++
const double pi = 3.141592653589793;
const angle rightangle = pi/2;
inline angle deg2rad(angle degree)
{
return degree * rightangle / 90.;
}
angle function1()
{
return rightangle * ( ((double) rand()) / ((double) RAND_MAX) - .5 );
}
bool setmargin(angle theta, angle phi, angle margin)
{
return (theta > phi-margin && theta < phi+margin);
}
Please help me. I'm new to C++
© Programmers or respective owner